package api

type Bean struct {
	JsonEnc    string `json:"jsonEnc"`
	KeyEnc     string `json:"keyEnc"`
	Sign       string `json:"sign"`
	MerchantNo string `json:"merchantNo"`
}

type JsonStr struct {
	Head HeadStr `json:"head"`
	//Body BodyStr `json:"body"`
}

type HeadStr struct {
	Language  string `json:"language"`
	TradeCode string `json:"tradeCode"`
	TradeTime int64  `json:"tradeTime"`
	TradeType string `json:"tradeType"`
	Version   string `json:"version"`
	RespDesc  string `json:"respDesc"`
	RespCode  string `json:"respCode"`
}

type Tp3004Req struct {
	Currency string `json:"currency"`
}

type Tp3004InfoList struct {
	Tp3004Info []Tp3004Info `json:"list"`
}

type Tp3004Info struct {
	Currency string `json:"currency"`
	Balance  string `json:"balance"`
	Status   string `json:"status"`
}

type Tp3004Res struct {
	Head           HeadStr        `json:"head"`
	Tp3004InfoList Tp3004InfoList `json:"body"`
}

type Tp1002Info struct {
	BuyAmount    string `json:"buyAmount"`
	BuyCurrency  string `json:"buyCurrency"`
	ExpireTime   int64  `json:"expireTime"`
	MerOrderNo   string `json:"merOrderNo"`
	QuoteId      int64  `json:"quoteId"`
	Rate         string `json:"rate"`
	SellAmount   string `json:"sellAmount"`
	SellCurrency string `json:"sellCurrency"`
}
type Tp1002Infos struct {
	BuyAmount    string `json:"buyAmount"`
	BuyCurrency  string `json:"buyCurrency"`
	ExpireTime   int64  `json:"expireTime"`
	MerOrderNo   string `json:"merOrderNo"`
	QuoteId      string `json:"quoteId"`
	Rate         string `json:"rate"`
	SellAmount   string `json:"sellAmount"`
	SellCurrency string `json:"sellCurrency"`
}

type Tp1002Res struct {
	Head HeadStr    `json:"head"`
	Body Tp1002Info `json:"body"`
}

type Tp1002ApiRes struct {
	Head HeadStr     `json:"head"`
	Body Tp1002Infos `json:"body"`
}

type Tp1002Req struct {
	Amount        string `json:"amount" binding:"required"`
	BuyCurrency   string `json:"buyCurrency" binding:"required"`
	LockDirection string `json:"lockDirection" binding:"required"`
	MerOrderNo    string `json:"merOrderNo"`
	SellCurrency  string `json:"sellCurrency" binding:"required"`
}
